package com.worker.Strategy;

/**
 * worker选择策略人
 * @author worker
 *
 */
public class WokersTest {
public static void main(String[] args) {
	//打开策略工具器选择B策略
	System.out.println(new StrategyTool(new BStrategy()).operate());
	System.out.println("我岂是贪生怕死之人");
	//换上了A策略
	System.out.println(new StrategyTool(new AStrategy()).operate());
}
}
